package com.ganmiao.constant;

public class AuthConstants {

    // 统一授权
    public static final String UNION_AUTH_TOKEN_MODULE_PREFIX = "union-auth_token";

    // 统一授权超时时间 30分钟
    //public static final long EXP_TOKEN_MILLSECOND = 30 * 60*48;
    public static final long EXP_TOKEN_MILLSECOND = 30*60*1000000;

    // 登录短信验证码
    public static final String UNION_AUTH_SMSCODE_PREFIX = "union-auth_smsCode";

    // 忘记密码短信验证码
    public static final String FORGET_PASSWORD_SMSCODE_PREFIX = "forget-password_smsCode";

    // 验证码有效时间 3分钟
    public static final long EXP_CAPTHCHA_MILLSECOND = 3 * 60 * 1000;

    // 账号密码登录验证码
    public static final String USER_LOGIN_PREFIX = "user:login:account:";

    // 用户token
    public static final String USER_TOKEN = "user:token:";

    //用户信息
    public static final String USER_LOGIN = "user:login:";

    //访问时间 毫秒
    public static final int TIME = 1000;
    //访问次数 1秒10次的规则
    public static final int COUNT = 10;

}
